API - Retrieve Raw (email) Event Details

Trying to figure out how to get the raw details of an event triggered by an email. In the portal UI, I can use the ‘show_raw_details’ method to show the email, however, the API doesn’t appear to provide access.

https://[host].pagerduty.com/incidents/[incident id]/log_entries/[log id]/show_raw_details

I am trying to parse the email to get the sender, since the API doesn’t appear to have access to this info.

I will take a peek here and see what’s possible.

Hi Jody,

You can pull that information from the API by following the steps outlined here:

Please let us know if that helps or if you have any other questions!

Nick

Thank you

this PowerShell command is providing me the information

(Invoke-RestMethod -Uri $self’?include[]=channels’ -Method GET -Headers $headers).log_entry.channel